package com.hcbd.tdwt.ui.htct.activity;

import android.annotation.SuppressLint;
import android.content.Intent;

import com.hcbd.tdwt.R;
import com.hcbd.tdwt.base.bd.BdToolFactory;
import com.cy.translucentparent.StatusNavUtils;

import com.hcbd.tdwt.base.BaseActivity;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EActivity;

@SuppressLint("NonConstantResourceId")
@EActivity(R.layout.activity_splash_hlct)
public class SplashActivity extends BaseActivity {
    @AfterViews
    protected void init() {
        StatusNavUtils.setStatusBarColor(this,0x00000000);
        BdToolFactory.newInstance(BdToolFactory.HLCT_BG_TYPE);
        Thread mThread = new Thread() {
            @Override
            public void run() {
                super.run();
                try {
                    sleep(1000);//使程序休眠3秒
                    Intent intent = new Intent(getApplicationContext(), MainActivity_.class);
                    startActivity(intent);
                    finish();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        };
        mThread.start();
    }



}
